
<template>
  <div v-if="$route.meta?.isUseFrame==false">
    <routerView/>
  </div>
  <div v-else>
    <el-container>
      <el-header>
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="auto">
          <Menu></Menu>
        </el-aside>
        <el-main>
          <PageHeader></PageHeader>
          <routerView/></el-main>
      </el-container>
    </el-container>
  </div>


  
</template>

<script setup lang="ts">
import { ref ,onMounted} from 'vue'
import Menu from '@/components/Menu.vue'
import Header from '@/components/Header.vue';
import PageHeader from '@/components/PageHeader.vue';
onMounted(() => {
  console.log("appvue开始渲染")
})

</script>
<style scoped>
.el-header{
  background-color: darkgoldenrod;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.el-aside{
  background-color: darkgoldenrod;
}
</style>
 